package com.exia.android.socialnet.linkedin;

import android.app.Activity;
import android.os.Bundle;
import android.view.ViewGroup.LayoutParams;
import android.webkit.WebView;
import android.webkit.WebViewClient;
import android.widget.FrameLayout;

public class LinkedInActivity extends Activity {
	private class WebClient extends WebViewClient{
		@Override
		public boolean shouldOverrideUrlLoading(WebView view, String url) {
	        view.loadUrl(url);
	        return true;
	    }

	}
	@Override
    public void onCreate(Bundle savedInstanceState) {
    	super.onCreate(savedInstanceState);
    	WebView webView_l = new WebView(this.getBaseContext());
        webView_l.getSettings().setJavaScriptEnabled(true);
        webView_l.setWebViewClient(new WebClient());
        this.setContentView(webView_l);
        webView_l.setLayoutParams(new FrameLayout.LayoutParams(LayoutParams.FILL_PARENT, LayoutParams.FILL_PARENT));
        webView_l.loadUrl("http://www.linkedin.com/");
	}
}
